package tr.edu.ege.kipler.satisfiability.completion.rules;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * 
 * @author İnanç Seylan
 *
 */
public class RuleLogger {

	private Logger javaLogger;

	private boolean enabled;

	public RuleLogger() {
		javaLogger = Logger.getLogger("rule");
		javaLogger.setLevel(Level.ALL);
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public void info(String str) {
		if (isEnabled()) {
			javaLogger.info(str);
		}
	}
}
